#ifndef EEECONTROL_H
#define EEECONTROL_H

class EeeControl
{
public:
    enum FanMode {FanModeManual, FanModeAuto};

    FanMode fanMode();
    bool setFanMode(FanMode);
    unsigned char fanSpeedPercent();
    bool setFanSpeedPercent(unsigned char value);
    int fanSpeedRpm();
    int temperature();
    static EeeControl* getInstance();
    bool isPortsAvailable();

private:
    static EeeControl* instance;

    EeeControl();
    bool portsAvailable;

    //static QString getParameterValue(const QString paramName);
    //static bool setParameterValue(const QString paramName, QString paramValue);
    static unsigned char getEcRegisterValue(unsigned short address);
    static bool setEcRegisterValue(unsigned short address, unsigned char data);
};

#endif
